package com.example.student;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;


@EnableDiscoveryClient
//@EnableFeignClients
@EnableFeignClients(basePackages = "com.example.apiservice.client") // 扫描Feign客户端
@SpringBootApplication(scanBasePackages = {"com.example.student", "com.example.common", "com.example.apiservice"})
@ComponentScan(basePackages = {"com.example.student", "com.example.common", "com.example.apiservice"})
public class StudentApplication {

    public static void main(String[] args) {
        SpringApplication.run(StudentApplication.class, args);
    }

}
